//
//  ZHSaveFilePath.m
//  Doctor
//
//  Created by liuzhishan on 16/1/8.
//  Copyright © 2016年 shanshan. All rights reserved.
//

#import "ZHSaveFilePath.h"

@implementation ZHSaveFilePath


+(NSString *)getHomeDirectoriesInDomainsPath
{
    
    NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
    NSString *plistPath = [paths objectAtIndex:0];
    plistPath = [plistPath stringByAppendingPathComponent:@"Save"];
    
    NSFileManager *fileManager = [NSFileManager defaultManager];
    
    if ([fileManager fileExistsAtPath:plistPath] == NO) {
        
     [fileManager createDirectoryAtPath:plistPath withIntermediateDirectories:YES attributes:nil error:nil];
        
    }
    
    plistPath = [plistPath stringByAppendingPathComponent:@"homeData"];
    
    
    
    return plistPath;
}
@end
